﻿<Page x:Class="Hotel.WPF.ui.StatutChambre.P_StatutChambre"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:extToolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit.Extended"
      mc:Ignorable="d" 
      d:DesignHeight="562" d:DesignWidth="844"
	Title="P_StatutChambre" Loaded="Page_Loaded">
    <extToolkit:BusyIndicator IsBusy="False" BusyContent="Chargement de la page en cours..." x:Name="busyTool" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0,0,0,0" >
        <Grid>
            <Label Content="GESTION DES STATUTS DES CHAMBRES" Height="28" Margin="10,2,12,0" Name="label1" VerticalAlignment="Top" Background="#FFD3DCF2" FontWeight="Bold" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
            <TabControl Height="469" Margin="10,38,12,0" Name="tbTC" VerticalAlignment="Top">
                <TabItem Header="Statut des chambres" Name="ti_tc">
                    <Grid>
                        <GroupBox Header="Ajout Statut de chambre" Height="116" HorizontalAlignment="Left" Margin="10,10,0,0" Name="groupBox2" VerticalAlignment="Top" Width="606">
                            <Grid>
                                <Button Content="Ajouter" Height="23" HorizontalAlignment="Left" Margin="455,6,0,0" Name="bt_add" VerticalAlignment="Top" Width="126" Click="bt_add_Click" />
                                <Label Content="Nom statut" Height="28" HorizontalAlignment="Left" Margin="16,6,0,0" Name="label12" VerticalAlignment="Top" />
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="151,11,0,0" Name="tb_nom" VerticalAlignment="Top" Width="172" />
                                <Button Content="Annuler" Height="23" HorizontalAlignment="Left" Margin="455,59,0,0" Name="bt_cancel" VerticalAlignment="Top" Width="126" />
                                <Button Content="Modifier" Height="23" HorizontalAlignment="Left" Margin="455,32,0,0" Name="bt_modif" VerticalAlignment="Top" Width="126" />
                                <Label Content="Description" Height="28" HorizontalAlignment="Left" Margin="16,37,0,0" Name="label2" VerticalAlignment="Top" />
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="151,40,0,0" Name="tb_description" VerticalAlignment="Top" Width="249" />
                            </Grid>
                        </GroupBox>
                        <DataGrid AutoGenerateColumns="False" Height="170" HorizontalAlignment="Left" IsReadOnly="True" ItemsSource="{Binding}" Margin="16,168,0,0" Name="dg_statutChambre" VerticalAlignment="Top" Width="600">
                            <DataGrid.Columns>
                                <DataGridTextColumn Binding="{Binding Nom_Statut_Chambre}" Header="Statut chambre" IsReadOnly="True" Width="130" />
                                <DataGridTextColumn Binding="{Binding Description_Statut_Chambre}" Header="Description" IsReadOnly="True" Width="200" />
                                <DataGridTemplateColumn Header="" Width="60">
                                    <DataGridTemplateColumn.CellTemplate>
                                        <DataTemplate>
                                            <Button Click="gererListeStatutChambre" CommandParameter="{Binding}" Content="Editer" Cursor="Hand" Name="editButton" />
                                        </DataTemplate>
                                    </DataGridTemplateColumn.CellTemplate>
                                </DataGridTemplateColumn>
                                <DataGridTemplateColumn Header="" Width="60">
                                    <DataGridTemplateColumn.CellTemplate>
                                        <DataTemplate>
                                            <Button Click="gererListeStatutChambre" CommandParameter="{Binding}" Content="Supprimer" Cursor="Hand" Name="deleteButton" />
                                        </DataTemplate>
                                    </DataGridTemplateColumn.CellTemplate>
                                </DataGridTemplateColumn>
                            </DataGrid.Columns>
                        </DataGrid>
                        <Label Content="Liste des statuts de chambre" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="14,133,0,0" Name="label22" VerticalAlignment="Top" />
                    </Grid>
                </TabItem>

            </TabControl>
        </Grid>
    </extToolkit:BusyIndicator>
</Page>
